package com.htjx.mall.commons.mappers;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.htjx.mall.commons.models.product.Category;

public interface CategoryMapper {
	
	public void insertOne(Category category); 
	
	public void updateOne(Category category);
	
	public void deleteOne(long id);
	
	public Category selectOne(long id);
	
	public List<Category> selectByActive(boolean active);
	
	public List<Category> page(Map<String, Object> params);
	
	public int pageCount(Map<String, Object> params);
	
	public List<Category> selectByProperty(@Param("p_name") String propertyName, @Param("p_value") String propertyValue);
	
}
